<%--
    Document   : popuptemplate
    Created on : Jun 4, 2012, 2:47:19 PM
    Author     : ems
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
      
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/datetimepicker.js"></script>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
    </head>
    <script type="text/javascript">
        var open_cur = 0;
        if (typeof jQuery == 'undefined') {
           // window.location.href="accessdenied.jsp";
        } 
        $j = jQuery.noConflict();
        $j(document).ready(function(){

         

        });
    </script>
    <style type="text/css">
        .divbutton{
            float: right;
            display: none;
        }
        
        
    </style>
    <f:view>
        <h:form>
           
                <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>

                <div class="popup" style="height:150px; width:350px">
                    <div class="popup-header">
                        <div class="title"><h:outputText value="Thông báo"/></div>
                    </div>
                    <div class="popup-content">
                        <div class="main_content" style="padding:20px 84px">
                                  
                            <h:panelGroup rendered="#{T950Bean.table == 'flau'}">
                                        <font style="font-weight:bold;margin-left: 6px;"><h:outputText rendered="#{T950Bean.table == 'flau'}" value="Kiểm duyệt chứng từ hoàn tất?"/>
                                       
                                        </font>
                                       
                                         </h:panelGroup>
                                         <h:panelGroup rendered="#{T950Bean.table == 'appro'}">
                                        <font style="font-weight:bold;margin-left: 35px;">
                                        <h:outputText rendered="#{T950Bean.table == 'appro'}" value="Xác nhận chứng từ?"/>
                                        </font>
                                         </h:panelGroup>
                                        <h:inputHidden id="id" value="#{T950Bean.pt950}" />
                                        <h:inputHidden id="id1" value="#{T950Bean.table}" />
                                        <h:inputHidden id="page" value="#{T950Bean.papeload}" />
                           

                        </div>
                    </div>
                    <div class="popup-footer">

                        <div class="buttonsave" style="float: right;margin-right: 87px;" onclick="parent.jQuery.fancybox.close(); "  ><span style="margin-right: 25px;"><h:outputText value="NO"/></span></div>
                        
                        <div class="divbutton" style="display:<h:outputText rendered="#{T950Bean.table == 'flau'}" value="block"/>">
                            <a4j:commandButton  action="#{T950Bean.faultfinding}" styleClass="buttonsave" value="YES">
                            
                        </a4j:commandButton>
                        </div>
                            <div class="divbutton" style="display:<h:outputText rendered="#{T950Bean.table == 'appro'}" value="block"/>">
                                <a4j:commandButton  action="#{T950Bean.approve}" styleClass="buttonsave" value="YES">
                            
                        </a4j:commandButton>
                        </div>
                        
                        
                    </div>
                </div>
          
        </h:form>
    </f:view>
</html>
        <script type="text/javascript">
            $j(document).ready(function(){
                 yhight = ($j('.popup').height()-90)+"px" ;
                 $j('.main_content').css('height',yhight );
                 $j('.popup-content').css('height',yhight );
            });
        </script>